package com.sunwayworld.basemodule.business.report.service;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.business.report.bean.LimsReportBean;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.auditable.service.GenericAuditableService;
import com.sunwayworld.framework.support.base.service.GenericService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface LimsReportService extends GenericService<LimsReportBean, Long>, GenericAuditableService<LimsReportBean, Long> {

    void createReports(String ids);

    void approveCallback(List<Long> idList); // 审核通过回调

    void previewReport(String ids, HttpServletResponse response);

    String downloadReports(String ids, HttpServletResponse response);

    JSONObject openAllAttachs(String ids);

    JSONObject downloadAllAttachs(String ids);

    void previewOnlineReports2(String ids, HttpServletResponse response);

    JSONObject uploadTjReport(RestJsonWrapperBean wrapper);

    void createReport(RestJsonWrapperBean wrapper);

    void autoCreateReports(RestJsonWrapperBean wrapper);

}
